\psset{unit=1}
\begin{pspicture*}(-2,-1.5)(2,1.5)
\psaxes[labelFontSize=\scriptstyle,ticksize=-3pt 0,labelsep=2pt]{<->}(0,0)(-2,-1.5)(2,1.5)
\psplot[linecolor=blue]{-2}{0}{-1}
\psplot[linecolor=blue]{0}{2}{1}
\end{pspicture*}